package Model;
import java.util.ArrayList;

/**
 * Write a description of class Ordre here.
 * 
 * @author Gruppe 4 
 * @version 14/12/11
 */
public class Ordre
{
    // instance variables - replace the example below with your own
    private int ordreNr;
    private boolean leverOrdre;
    private boolean hentOrdre;
    private String status;
    private double totalPris;
    private int dato;
    private ArrayList<Delordre> delordre;

    public Ordre(int ordreNr, boolean leverOrdre, boolean hentOrdre, String status, double totalPris, int dato)
    {
        this.ordreNr = ordreNr;
        this.leverOrdre = leverOrdre;
        this.hentOrdre = hentOrdre;
        this.status = status;
        this.totalPris = totalPris;
        this.dato = dato;        
    }

    public int getOdreNr()
    {
        return ordreNr;
    }

    public boolean getLeverOrdre()
    {
        return leverOrdre;
    }

    public boolean getHentOrdre()
    {
        return hentOrdre;
    }

    public String getStatus()
    {
        return status;
    }

    public double getTotalPris()
    {
        return totalPris;
    }

    public int getDato()
    {
        return dato;
    }

    public void addDelordre(Delordre ordre)
    {
        delordre.add(ordre);
    }

    public void setOrdreNr(int ordreNr)
    {
        this.ordreNr=ordreNr;
    }

    public void setLeverOrdre(boolean leverOrdre)
    {
        this.leverOrdre = leverOrdre;
    }

    public void setHentordre(boolean hentOrdre)
    {
        this.hentOrdre = hentOrdre;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public void setTotalPris(double totalPris)
    {
        this.totalPris = totalPris;
    }

    public void setDato(int dato)
    {
        this.dato=dato;
    }
}